package com.ggs.starbug.config.rabbitmq;

/**
 * @Author lianghaohui
 * @Date 2021/12/27 16:25
 * @Description
 */
public interface RabbitMQConstants {

    //普通队列
    //交换机名称
    String TIMER_TOPIC_EXCHANGE = "timer_topic_exchange";

    //队列名称
    String TIMER_ADD_QUEUE = "timer_add_queue";

    //队列名称
    String TIMER_DELETE_QUEUE = "timer_delete_queue";

    //队列名称
    String TIMER_UPDATE_QUEUE = "timer_update_queue";

    //路由key
    String TIMER_ADD_ROUTING_KEY = "timer.add";

    //路由key
    String TIMER_DELETE_ROUTING_KEY = "timer.delete";

    //路由key
    String TIMER_UPDATE_ROUTING_KEY = "timer.update";

    /**
     * 死信队列
     */
    //普通交换机名称
    String NORMAL_EXCHANGE = "normal_exchange";

    //死信交换机名称
    String DEAD_LETTER_EXCHANGE = "dead_letter_exchange";

    //普通队列A和B
    String QUEUE_A = "queue_a";
    String QUEUE_B = "queue_b";

    //死信队列
    String DEAD_LETTER_QUEUE = "dead_letter_queue";

    //普通路由key
    String NORMAL_ROUTING_KEY_A = "normal.routing.key.a";
    String NORMAL_ROUTING_KEY_B = "normal.routing.key.b";

    //死信路由key
    String DEAD_LETTER_ROUTING_KEY = "dead.letter.routing.key";


    /**
     * 延迟队列
     */
    //延迟队列名
    String DELAYED_QUEUE = "delayed_queue";

    //延迟交换机名
    String DELAYED_EXCHANGE = "delayed_exchange";

    //路由key
    String DELAYED_ROUTING_KEY = "delayed.routing.key";
}
